import request from '@/util/request.js'

export const allMessage=()=>{
    return request.get('/message/list')
 }

 export const delectMessage=(id)=>{
    return request.put(`/message/delete?id=${id}`)
 }

 export const addMessage=(messageInfo)=>{
    return request.post('/message/add',messageInfo)
 }